const { getEditTSX } = require('./tsgen/build/BaseGenUtils')

const { getCachedDocumentNodeFromSchema } = require('@graphql-codegen/plugin-helpers')
 
module.exports = {
  plugin(schema, documents, config) {
    const astNode = getCachedDocumentNodeFromSchema(schema) // Transforms the GraphQLSchema into ASTNode

    return getEditTSX(astNode,documents)

  } 
}